﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CollegeWebsite.Models.Student>" %>


    <% using (Html.BeginForm("ApplyAdmission","Student")) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.StudentID) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.StudentID) %>
                <%= Html.ValidationMessageFor(model => model.StudentID) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.StudentName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.StudentName) %>
                <%= Html.ValidationMessageFor(model => model.StudentName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.FatherName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.FatherName) %>
                <%= Html.ValidationMessageFor(model => model.FatherName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.MotherName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.MotherName) %>
                <%= Html.ValidationMessageFor(model => model.MotherName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.DateOfBirth) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.DateOfBirth) %>
                <%= Html.ValidationMessageFor(model => model.DateOfBirth) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Gender) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Gender) %>
                <%= Html.ValidationMessageFor(model => model.Gender) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.AdmissionID) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.AdmissionID) %>
                <%= Html.ValidationMessageFor(model => model.AdmissionID) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.SupportDetails) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.SupportDetails) %>
                <%= Html.ValidationMessageFor(model => model.SupportDetails) %>
            </div>
            <!--        -->
            <div class="editor-field">
            Resident Country:<input type="text" name="ResidentCountry" />
            </div>
            <div class="editor-field">
            Resident City:<input type="text" name="ResidentCity" />
            </div>
            <div class="editor-field">
            Resident Street:<textarea type="text" name="ResidentStreet" ></textarea>
            </div>
            
            
            <div class="editor-field">
            Permanent Country:<input type="text" name="PermanentCountry" />
            </div>
            <div class="editor-field">
            Permanent City:<input type="text" name="PermanentCity" />
            </div>
            <div class="editor-field">
            Permanent Street:<textarea type="text" name="PermanentStreet" ></textarea>
            </div>
            
            
            
            
              <!--        -->
           
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Status) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Status) %>
                <%= Html.ValidationMessageFor(model => model.Status) %>
            </div>
           <span id="captcha"></span><input type="text" name="entercaptcha"/>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>
<%--
</body>
</html>

--%>